package com.ls.kdlss.ui.Login;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.gm.common.utils.ActivityUtil;
import com.ls.kdlss.R;
import com.zhy.adapter.recyclerview.CommonAdapter;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2016/9/27.
 */

public class LoginActivity extends AppCompatActivity implements View.OnClickListener {


    @Bind(R.id.bt_log)
    Button btLog;
    @Bind(R.id.bt_reg)
    Button btReg;


    public static void launch(Context context) {
        ActivityUtil.startActivity(context, LoginActivity.class);
    }
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        ButterKnife.bind(this);
    }
    @OnClick({R.id.bt_log, R.id.bt_reg})
    @Override
    public void onClick(View v) {

        switch (v.getId()){

            case R.id.bt_log:
                LogActivity.launch(LoginActivity.this);
                break;
            case R.id.bt_reg:
                RegisterActivity.launch(LoginActivity.this,"2");
                break;
        }

    }
}


